home *** CD-ROM | disk | FTP | other *** search
-
- #include <Types.h>
- #include <QuickDraw.h>
- #include <Fonts.h>
- #include <Windows.h>
- #include <OSUtils.h>
- #include <SAGlobals.h>
-
-
- void UseQuickDraw (void) {
- A5RefType A5Ref;
- long oldA5;
- Rect theRect;
- WindowPtr theWind;
-
- if (!Button()) {
- oldA5 = OpenA5World(&A5Ref);
- InitGraf(&qd.thePort);
- InitFonts();
- InitWindows();
- InitCursor();
- theRect.top = theRect.left = 0;
- theRect.right = 200;
- theRect.bottom = 120;
- OffsetRect(&theRect,(qd.screenBits.bounds.right-theRect.right)/2,(qd.screenBits.bounds.bottom-theRect.bottom)/2);
- theWind = NewWindow((Ptr) 0, &theRect, "\pBooting…", true, noGrowDocProc, (WindowPtr) -1, false, 0);
- SysBeep(1);
- DisposeWindow(theWind);
- CloseA5World(oldA5, A5Ref);
- }
- }
-